package Chapter02.HomeWork;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        System.out.println("输入英寸数：");
        double in=2.54;
        double cm=0;
        Scanner input=new Scanner(System.in);
        double num=input.nextDouble();
        cm=num*in;
        System.out.println("转换为厘米为："+cm);
    }
}
